import request from '@/utils/request.js'

// 获取新闻频道
function getChannels () {
  return request({
    url: '/v1_0/channels'
  })
}
// 获取文章新闻推荐
function articles (params) {
  return request({
    url: '/v1_0/articles',
    params: params
  })
}

export { getChannels, articles }
